<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<script>
    window.onload=function(){
        var flag = alert("密码错误,请重新登录");
        window.location.href = "templates/login.html"
    }
</script>
</body>
</html>